<?	/* @var $currentSection Section */ ?>
<?	/* @var $currentTag Tag */ ?>

<?	require(sfConfig::get('sf_plugins_dir')."/bertaTwigPlugin/lib/dirtyRequire.php"); ?>
<?

    $templateName=$widgetPosition->getTemplateName();
    if ($templateName==""){
        $templateName=$widget->getSlug();
    }

    $widgetTemplateFile="widgets/{$templateName}.html";

    if (file_exists("{$templatePath}/{$widgetTemplateFile}")){
        $widgetTemplate = $twig->loadTemplate($widgetTemplateFile);
        $widgetTemplate->display($vars);
    }

?>

